﻿/* 
 * author: www.cnblogs.com/luminji
 * date  : 2011/11/18
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Luminji.Infrastructure.DomainBase;
using Luminji.Infrastructure.RepositoryFramework;

namespace Luminji.Infrastructure.UnitOfWork
{
    public interface IUnitOfWork
    {
        void RegisterAdded(EntityBase entity, IUnitOfWorkRepository repository);
        void RegisterChanged(EntityBase entity, IUnitOfWorkRepository repository);
        void RegisterRemoved(EntityBase entity, IUnitOfWorkRepository repository);
        void Commit();
        object Key { get; }
    }
}
